package com.fenghuajueli.module_user;

import com.fenghuajueli.libbasecoreui.BaseApplication;
import com.fenghuajueli.libbasecoreui.constants.AppConfigInfo;
import com.fenghuajueli.libbasecoreui.utils.PrivacyConstantsUtils;
import com.fenghuajueli.module_user.utils.UserModuleInitUtils;

/**
 * ===========================================================
 * author：songpeng on 1/15/21 14:29
 * email：fenghuajueli@gmail.com
 * ===========================================================
 */
public class UserModuleApplication extends BaseApplication {

    @Override
    public void onCreate() {
        super.onCreate();
        initAppInfo();
        initPrivacy();
        UserModuleInitUtils.init(this);
    }


    /**
     * app相关信息初始化
     */
    private void initAppInfo() {
        AppConfigInfo.APPLICATION_ID = "com.fenghuajueli.module_user";
        AppConfigInfo.APP_COMPANY = "测试公司";
        AppConfigInfo.APP_DEBUG = BuildConfig.DEBUG;
        AppConfigInfo.APP_NAME = "测试组件化运行APP";
    }

    /**
     * 隐私协议相关初始化
     */
    private void initPrivacy() {
        PrivacyConstantsUtils.appName = AppConfigInfo.APP_NAME;
        PrivacyConstantsUtils.companyName = AppConfigInfo.APP_COMPANY;
        PrivacyConstantsUtils.vipContent = "STar视频编辑 视频剪辑 、卡点视频  视频滤镜、抖音特效等。";
        PrivacyConstantsUtils.vipDesc = "\" 本产品VIP会员包括多种会员，使用时长取决于您的购买选择。【非永久会员】 可自行进行选择续费，续费后会员时间将叠加；购买【永久会员】后，这一切都无需再付费。\" ";
    }


    @Override
    public boolean appIsDebug() {
        return BuildConfig.DEBUG;
    }

    @Override
    public String getChannel() {
        return "HUAWEI";
    }
}
